<template>
  <button @click="demoIsShow=!demoIsShow">点击切换隐藏/显示</button>
  <Demo v-if="demoIsShow"></Demo>
</template>

<script>
import Demo from "./components/Demo.vue";
import { ref } from "vue";

export default {
  name: "App",
  components: {
    Demo,
  },
  setup() {
    let demoIsShow = ref(true)

    return {
      demoIsShow
    }
  }
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
